<%@ page contentType="text/html;charset=UTF-8" language="java"
         errorPage="error.jsp" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<%
    //1.out输出对象
    out.write("hello <br/>");
    //2.request通过请求得到参数name
    String name = request.getParameter("name");
    out.write("name=" + name + "<br/>");
    //3.config
    String servletName = config.getServletName();
    out.write("servletName=" + servletName + "<br/>");
    //4.page当前类
    String name1 = page.getClass().getName();
    out.write("name1=" + name1 + "<br/>");
    //5.pageContent
    HttpSession session1 = pageContext.getSession();
    out.write("session1=" + session1 + "<br/>");
    //6.session
    String id = session.getId();
    out.write("sessionid=" + id + "<br/>");
    //7. application
    application.setAttribute("app","myApp");
    //8. response
    response.setContentType("text/html;charset=utf-8");

    out.write(1/0);
%>

</body>
</html>
